package org.ghost.wechat.platform.common.enumeration;

import lombok.Getter;

@Getter
public enum DbTypeEnum {
    MASTER("master", "主"),
    SLAVE("slave", "从");

    DbTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    private String code;

    private String name;

    @Override
    public String toString() {
        return this.code;
    }
}
